$OpenBSD: patch-src_pyoggpackbuff_c,v 1.2 2011/05/31 09:30:43 dcoppa Exp $

Fix memory allocation/deallocation for Python 2.5 and above
(from Debian's patchset for python-ogg)

--- src/pyoggpackbuff.c.orig	Mon Oct  7 01:04:57 2002
+++ src/pyoggpackbuff.c	Tue Jun  1 15:38:26 2010
@@ -89,7 +89,7 @@ static PyMethodDef py_oggpack_buffer_methods[] = {
 static void
 py_oggpack_buffer_dealloc(PyObject *self)
 {
-  PyMem_DEL(self);
+  PyObject_Del(self);
 }
 
 static PyObject*
